﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoCamp;

namespace SimpleDemo
{
    class Prodcut : EntityCollection<int, Prodcut>
    {
        public int ProdcutID
        {
            get { return GetPrimaryKeyID(); }
            set { SetPrimaryKeyID(value); }
        }
    }


    public class BlogVisit : EntityCollection<string, BlogVisit>
    {
        public BlogVisit()
            : base("visitLog", MongoServerPack.LogDB)
        {
            Uptime = DateTime.Now;
        }

        public string UserIP { get; set; }

        public string UserAgent { get; set; }

        public DateTime Uptime { get; set; }
    }
}
